import fetch from '@/utils/fetch'

export function apiSpare(spareDto) {
  return fetch({
    url: '/api/v1/spare/approve',
    method: 'POST',
    data: spareDto
  })
}

export function apiGetSpareList (listQuery) {
  return fetch({
    url: '/api/v1/spare/approveList',
    method: 'GET',
    params: listQuery
  })
}

export function apiGetAlreadySpareList (listQuery) {
  return fetch({
    url: '/api/v1/spare/approve/alreadyList',
    method: 'GET',
    params: listQuery
  })
}
